package cn.hust.springboot.service.impl;

import cn.hust.springboot.bean.DeptExample;
import cn.hust.springboot.bean.Nation;
import cn.hust.springboot.bean.NationExample;
import cn.hust.springboot.mapper.NationMapper;
import cn.hust.springboot.service.INationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NationServiceImpl implements INationService {
    @Autowired
    private NationMapper nationMapper;
    public List<Nation> getAllNations() {
        NationExample example = new NationExample();
        NationExample.Criteria criteria = example.createCriteria();
        criteria.getAllCriteria();
        return this.nationMapper.selectByExample(example);
    }
}
